Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: migrate bfgs to new style learner creation #2926

Merged
merged 2 commits into from
Apr 8, 2021

Conversation

jackgerrits
Copy link
Member

No description provided.

@@ -764,25 +764,25 @@ struct common_learner_builder

FluentBuilderT& set_finish(void (*fn_ptr)(DataT&))
{
_learner->finisher_fd = func_data(_learner->learn_fd.data, _learner->learn_fd.base, (finish_fptr_type)(fn_ptr));
_learner->finisher_fd = tuple_dbf(_learner->learn_fd.data, _learner->learn_fd.base, (finish_fptr_type)(fn_ptr));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: tuple_dbf -> tuple_data_base_fn

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a bug I introduced in the original PR and was not caught because the template was not instantiated. The rename would be good but is out of scope for this change

@jackgerrits jackgerrits merged commit 367a563 into VowpalWabbit:master Apr 8, 2021
@jackgerrits jackgerrits deleted the jagerrit/migrate_bfgs branch April 15, 2021 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants